const router = require('express').Router();
// 定义home页路由
router.get('/home', (req,res) => {
  const sign = '不要哭，皇冠回调';
  const arr = ['妖猴', '猪妖', '河妖', '秃驴'];
  const content = `
    <h2 style="color:red">我是富文本内容</h2>
  `;
  res.render('home', {
    sign,
    arr,
    content
  })
})

router.post('/home', (req,res) => {
  res.send('home的post请求')
})

module.exports = router